package com.kx.center.service;

import java.util.HashMap;
import java.util.List;

import com.kx.center.entity.DailyCounting;
import com.kx.center.entity.DailyCountingDetail;
import com.kx.center.entity.query.QueryDailyCounting;
import com.kx.center.entity.query.QueryResult;

public interface CountingService {
	public void insertDailyCounting(DailyCounting entity);
	public void insertDailyCountingDetail(DailyCountingDetail entity);
	
	public void updateDailyCounting(DailyCounting entity);
	public void updateDailyCountingDetail(DailyCountingDetail entity);
	
	public DailyCounting findDailyCountingById(Integer id);
	public DailyCounting findDailyCountingBySN(String sn);
	
	public List<DailyCounting> findDailyCountingByStoreId(Integer storeId);
	public List<DailyCountingDetail> findDailyCountingDetailByDCId(Integer dcId);
	
	public void saveDailyCounting(Integer storeId, DailyCounting counting, List<HashMap<String, Object>> json);
	public void confirm(DailyCounting entity);
	
	public QueryResult queryDailyCounting(QueryDailyCounting query);
}
